<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>实例生命周期</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<script>
    new Vue({
        data: {
            a: 1
        },
        created: function () {
            console.log('a is ' + this.a)
        },
        mounted:function () {
            console.log('run mounted' + this.a)
        }
    })
    // => "a is: 1"
</script>
</body>
</html>